<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/site/news.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	$('#editNewsForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3 class="title"><i class="fontello-icon-th-list-1"></i> 编辑物品信息</h3>
</div>
<div class="widget" >
	<div class="widget-content">
		<form id="editNewsForm">
			<table style="width:400px;"  class="table table-bordered animate2 fadeInUp">
			<tr>
					<td style="width: 100px;">网站名称</td>
					<td>
						<input type="text" id="name" name="name" value="${(news.name)!''}" />
					</td>
				</tr>
				<tr>
					<td style="width: 100px;">起始网址</td>
					<td>
						<input type="text" id="starturl" name="starturl" value="${(news.starturl)!''}" />
					</td>
				</tr>
				<tr>
					<td>跟网址</td>
					<td><input type="text" id="www" name="www" value="${(news.www)!''}"/></td>
				</tr>
				<tr>
					<td>标签</td>
					<td><input type="text" id="t" name="t" value="${(news.t)!''}"/></td>
				</tr>
				<tr>
					<td>标签属性/属性值</td>
					<td><input type="text" id="k" name="k" style="width: 50px;" value="${(news.k)!''}"/>
						——<input type="text" id="v" name="v" style="width: 50px;" value="${(news.v)!''}"/></td>
				</tr>
				<tr>
					<td>内容标签</td>
					<td><input type="text" id="content" name="content" value="${(news.content)!''}"/></td>
				</tr>
				<tr>
					<td>内容标签属性/属性值</td>
					<td><input type="text" id="k1" name="k1" style="width: 50px;" value="${(news.k1)!''}"/>
						——<input type="text" id="v1" name="v1" style="width: 50px;" value="${(news.v1)!''}"/></td>
				</tr>
				<tr>
					<td>类型</td>
					<td><@mte.Newtype id="type" value=((news.type)!'') nullstr='请选择' name="type"/></td>
				</tr>
				<tr>
					<td>备注</td>
					<td><input type="text" id="remark" name="remark" value="${(news.remark)!''}"/></td>
				</tr>
				<tr height="40">
					<td colspan="2" style="text-align: center;">
						<a href="javascript:;" class="btn btn-info" onclick="javascript: save_news(); return false;"><i class="icon-save"></i>&nbsp;保&nbsp;&nbsp;存</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('news');return false;"><i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>